package com.blog1.enums;

import lombok.*;

@NoArgsConstructor
@AllArgsConstructor
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    ERROR(500,"失败"),
    NOT_FOUND(404,"未找到"),
    FORBIDDEN(403,"禁止访问"),
    UNAUTHORIZED(401,"未授权"),
    PARAM_ERROR(400,"参数错误"),
    INTERNAL_SERVER_ERROR(500,"服务器内部错误"),
    BAD_REQUEST(400,"错误的请求"),
    METHOD_NOT_ALLOWED(405,"不允许的方法"),
    NOT_ACCEPTABLE(406,"不可接受的请求"),
    REQUEST_TIMEOUT(408,"请求超时"),
    CONFLICT(409,"冲突"),
    GONE(410,"已删除");
    @Getter @Setter
    private Integer code;
    @Getter @Setter
    private String msg;
}
